﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Sbook.AdminIstrator
{
    public partial class XuLyAddCat : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Data.CategoryInfo obj=new Data.CategoryInfo();
                obj.cName=Request.Form["txtName"];
                obj.cStatus = Request.Form["sl_status"];
                obj.cpID = Request.Form["sl_PCat"];

                Business.CategoryService.Category_Insert(obj);
                Response.Redirect("/AdminIstrator/Category_Pro.aspx");
            }
        }
    }
}